import { createApp } from 'vue'
import { componentPlugin } from '@/components'
import App from './App.vue'
import router from './router'
import pinia from '@/stores'
import p from '@/directive/permission'

import '@/styles/index.scss' // 样式文件
import '@/permission.js' // 路由权限
import 'element-plus/es/hooks/use-locale/index' //配置中文
import 'virtual:svg-icons-register' // svg图标

const app = createApp(App)

app.use(componentPlugin) // 全局组件
app.use(router)
app.use(pinia)
app.use(p) // 按钮权限

app.mount('#app')
